package pe.com.grupobbva.ohc.pe29;

public class MS_OHC_PE29PortTypeProxy implements pe.com.grupobbva.ohc.pe29.MS_OHC_PE29PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.pe29.MS_OHC_PE29PortType mS_OHC_PE29PortType = null;
  
  public MS_OHC_PE29PortTypeProxy() {
    _initMS_OHC_PE29PortTypeProxy();
  }
  
  public MS_OHC_PE29PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initMS_OHC_PE29PortTypeProxy();
  }
  
  private void _initMS_OHC_PE29PortTypeProxy() {
    try {
      mS_OHC_PE29PortType = (new pe.com.grupobbva.ohc.pe29.OHC_PE29_ServiceLocator()).getOHC_PE29_Port();
      if (mS_OHC_PE29PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)mS_OHC_PE29PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)mS_OHC_PE29PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (mS_OHC_PE29PortType != null)
      ((javax.xml.rpc.Stub)mS_OHC_PE29PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.pe29.MS_OHC_PE29PortType getMS_OHC_PE29PortType() {
    if (mS_OHC_PE29PortType == null)
      _initMS_OHC_PE29PortTypeProxy();
    return mS_OHC_PE29PortType;
  }
  
  public pe.com.grupobbva.ohc.pe29.CtConOhcPE29Rs callPE29(pe.com.grupobbva.ohc.pe29.CtConOhcPE29Rq conOhcPE29Rq) throws java.rmi.RemoteException{
    if (mS_OHC_PE29PortType == null)
      _initMS_OHC_PE29PortTypeProxy();
    return mS_OHC_PE29PortType.callPE29(conOhcPE29Rq);
  }
  
  
}